package com.youhome.clients.controller;

import com.youhome.service.service.PayService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * Created by chen365 on 2017/9/22.
 */
@RestController
//@Api(tags = "Ping++支付回调")
@Slf4j
public class PayController {

    @Autowired
    private PayService payService;

    @RequestMapping(value = "/alipay/success")
    public void alipaySuccess(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        payService.alipaySuccess(request,response);
    }

}
